﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace WebBags.Common
{
    public class MyValidation
    {
        public static bool ValidateNumber(string number)
        {
            var regex = new System.Text.RegularExpressions.Regex(@"(^[0-9]{0,}$)");
            if (regex.IsMatch(number))
            {
                return true;
            }
            return false;
        }
    }
}
